<h1><%= link_to 'Gestion des clients', clients_path %></h1>
<br>
<br>
<h1>Nouvelle reservation</h1>

<% form_for(@reservation) do |f| %>
  <%= f.error_messages %>
	
	<fieldset>
		<% fields_for :client, @reservation.client do |c| %>
  		<p>
    		<%= c.label :nom %><br />
    		<%= c.text_field :nom %>
  		</p>
		<% end %>
	</fieldset>
  <p>
    <%= f.label :date_debut %><br />
    <%= f.date_select :date_debut %>
  </p>
  <p>
    <%= f.label :date_fin %><br />
    <%= f.date_select :date_fin %>
  </p>
  <p>
    <%= f.label :nb_personnes %><br />
    <%= f.text_field :nb_personnes %>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', reservations_path %>
